package com.pureut.storage.controller;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.common.core.web.page.TableDataInfo;
import com.pureut.storage.dto.PickingPurchaseDetailListDto;
import com.pureut.storage.service.PickingPurchaseDetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/2/6 11:28
 * @Desc: 采购退货明细
 */
@RestController
@RequestMapping("/pickingPurchaseDetail")
public class PickingPurchaseDetailController extends BaseController {

    /**
     * 采购退货明细service
     */
    @Resource
    PickingPurchaseDetailService pickingPurchaseDetailService;

    @GetMapping("/list")
    public TableDataInfo getRestList(String wodDocNum) {
        startPage();
        //查询其他出库列表
        List<PickingPurchaseDetailListDto> purchaseList = pickingPurchaseDetailService.getPurchaseList(wodDocNum);
        return getDataTable(purchaseList);
    }

}


